{echo:JS::import('dialog?skin=brief');}
{echo:JS::import('dialogtools');}
{echo:JS::import('form');}
<form action="" method="post">
<div class="tools_bar clearfix">
    <a class="icon-checkbox-checked icon-checkbox-unchecked" href="javascript:;" onclick="tools_select('id[]',this)" title="全选" data="true"> 全选 </a>
    <a class="icon-delicious" href="{url:/customer/exchange_list}"> 全部记录</a>
    <span class="fr"><a href='javascript:;' id="condition" class="icon-search" style="" > 筛选条件</a><input id="condition_input" type="hidden" name="condition" value="{$condition}"></span>
</div>
<table class="default">
    <tr>
        <th>操作</th>
        <th>用户</th>
        <th>兑换方式</th>
        <th>兑换金额</th>
        <th>反哺费</th>
        <th>实际到帐金额</th>
        <th>时间</th>
        
            
    </tr>
    {query:name=zh as wd fields=wd.*,us.name as uname join= inner join user as us on wd.user_id eq us.id where= $where id=$obj page=1 order=id desc pagesize=20 }
        <tr>
        	<td style="width:70px" class="btn_min"></td>
        	<td>{$item['uname']}</td>
        	<td>{$item['zh_desc']}</td>
        	<td>{$item['zh_money']}</td>
        	<td>{$item['fbf']}</td>
        	<td>{$item['real_money']}</td>
        	<td>{$item['zh_time']}</td>
        </tr>
    {/query}
</table>
</form>
<div class="page_nav">
{echo:$obj->pageBar()}
</div>
<script type="text/javascript">
    var form =  new Form();
    $("#condition").on("click",function(){
        $("body").Condition({input:"#condition_input",okVal:'高级搜索',callback:function(data){tools_submit({action:'{url:/customer/exchange_list}',method:'get'});},data:{'us.name':{name:'用户名'},'zh_money':{name:'兑换金额'},'zh_lx':{name:'兑换方式'}
        }});
    });
    function withdrawAction(id)
    {
        art.dialog.open("{url:/customer/withdraw_view/id/}"+id,{id:'withdraw-dialog',title:"审批",width:620});
    }
    function close_dialog()
    {
        art.dialog({id:"withdraw-dialog"}).close();
        tools_reload();
    }
</script>
